﻿using System.Collections.ObjectModel;
using System.ComponentModel;

namespace WpfTwitterClient.Modules.Authorization.Views.StatusView
{
    public class AccountPresentationModel : INotifyPropertyChanged
    {
        private string _pin;
        private string _headerInfo = "Account";

        public string Pin
        {
            get { return _pin; }
            set
            {
                if (_pin == value)
                    return;

                _pin = value;
                this.OnPropertyChanged("Pin");
            }
        }

        public string HeaderInfo
        {
            get { return _headerInfo; }
            set
            {
                if(value == _headerInfo)
                    return;

                _headerInfo = value;
                OnPropertyChanged("HeaderInfo");
            }
        }

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(property));
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
